
# 导入script
from flask_script import Manager
# 导入migrate
from flask_migrate import Migrate,MigrateCommand
# 导入info/__init__.py
from info import create_app,db



app = create_app('dev')





# 实例化管理对象
manage = Manager(app)
# 使用迁移命令
Migrate(app,db)
# 添加迁移命令
manage.add_command('db',MigrateCommand)




if __name__ == '__main__':
    # app.run(debug=True)
    manage.run()